<ion-view class="connect-setting-view" view-title="连接设置">
    <ion-content>
        <form name="connectForm" novalidate class="connect-form">
            <div class="list connect-list">
                <label class="item item-input">
                    <span class="input-label">服务器</span>
                    <input type="text" placeholder="请输入IP地址" ng-model="data.address" ng-change="settingChange()" required>
                </label>
                <label class="item item-input">
                    <span class="input-label">端口号</span>
                    <input type="number" placeholder="请输入端口号" ng-model="data.port" ng-change="settingChange()"required>
                </label>
            </div>
        </form>
    </ion-content>
    <ion-footer-bar>
        <im-pull-right>
            <button class="button" ng-click="connectTest()">连接测试</button>
            <button class="button" ng-disabled="!data.validSetting" ng-click="setConnect()">确认</button>
        </im-pull-right>
    </ion-footer-bar>
</ion-view>